package com.chaodev.base.service;

import com.chaodev.base.dto.LearningRecordDto;
import com.chaodev.base.model.Result;

import javax.servlet.http.HttpServletRequest;

public interface LearningRecordService {
    /**
     * 查询学习记录
     * @param trainingId
     * @param beginTime
     * @param endTime
     * @return
     */
    Result queryLearningRecord(Integer trainingId, String beginTime, String endTime, HttpServletRequest request,Integer page,Integer rows);

    /**
     * 提交学习记录
     * @param dto
     * @return
     */
    Result addLearningRecord(LearningRecordDto dto,HttpServletRequest request);
}
